<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>爱选</title>
<meta name="keywords" content="" />
<meta name="description"  content="" />
<link href="/static/css/ixuan.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript" src="/static/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/static/js/i.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$('.addImg').toggle(
	  function () {
        $('.addImg1').fadeIn('slow');
	  },
	  function () {
        $('.addImg2').fadeIn('slow');
		 $(this).fadeOut('slow');
	  }
	);
	$('.closeAuto').click(function() {
	    var choseTime = $('.closeAuto').attr('checked')+'ll';
	    if( choseTime == 'truell'){
            $('.closeTime').show();
		}
		else{
            $('.closeTime').hide();
		};
    });

	
});
</script>
<body>
<div class="top">
    <div class="header">
      <div class="logo"><a href="http://localhost:8080"><img src="/static/images/logo.gif" alt="爱选" /><img src="/static/images/logotext.gif" alt="爱选" /></a></div>
      <div class="headInfo">
          <div class="myInfo">您好，{{user.nickname }} ! <a href="/userhome/{{ user.uid }}">我的爱选</a> <a href="/account/"> 个人中心 </a>  <a href="/logout/">退出</a></div>
          <div class="search"><input name="" type="text" class="seaIn" /><input name="" type="button" class="seaSo" value="搜索"/></div>
      </div>
    </div>
</div>
<form action="/problem/create/" method="post" enctype="multipart/form-data" onsubmit="return ajaxFileUpload();">
<div class="wrapper">
    <div class="main">
      <h1><span><select name="type">
      {% for t in types %}
      <option value="{{ t.tid }}">{{ t.name }}</option>
      {% endfor %}
      </select></span>
        <label><b style="font-size:12px; font-weight:normal"> 请输入投票标题：</b>
        <input type="text" name="title" class="addVoteTit" id="textfield"  />
        </label>
      </h1>
  <div class="describe">
    <label>请添加投票描述：</label>
    <textarea name="description" rows="6" class="addvote" id="textfield2" ></textarea>
    <div class="addImg1" style="display:none">
        <label>添加A描述的图片
        <input type="file" name="picture1" id="fileField" class="addimages"/>
        </label>
    </div>
    <div  class="addImg2" style="display:none">
        <label>添加B描述的图片
        <input type="file" name="picture2" id="fileField"  class="addimages"/>
        </label>
    </div>
  </div>
    <a href="###" class="addImg"><img src="/static/images/add16_16.gif"  alt=""/>添加图片</a>
    <div id="a" class="option4">
          <div title="点击完成选择" class="a"></div>
          <div class="percent">&nbsp;</div>
          <div class="select">
            <label>
            <textarea name="choice1" rows="3" id="textfield3" class="addvote" ></textarea>
            </label>
          </div>
      </div>
        <div id="b" class="option4">
          <div title="点击完成选择" class="b"></div>
          <div class="percent">&nbsp;</div>
          <div class="select">
            <label>
            <textarea name="choice2" rows="3" id="textfield3" class="addvote" ></textarea>
            </label>
          </div>
        </div>
            <div class="h10"></div>
        <h2>&gt; 其他选项</h2>
       <div class="allList allList2">
            <input type="checkbox" class="pcomment" checked="checked" value="on" name="pcomment">公开评论 </input><br/>
             <div class="h10"></div>
             <input type="checkbox" class="closeAuto" checked="checked" value="on" name="autoclose">设定自动关闭时间</input>
             <span  class="closeTime">
           截止时间：
              <select name="year" onchange="timeOnchange(this);" id="year">
                <option selected="selected" value="2011">2011</option>
                <option value="2012">2012</option>
              </select>
              年
              <select name="month" onchange="timeOnchange(this);" id="month2">
                <option value="1">01</option>
                <option value="2">02</option>
                <option value="3">03</option>
                <option value="4">04</option>
                <option value="5">05</option>
                <option selected="selected" value="6">06</option>
                <option value="7">07</option>
                <option value="8">08</option>
                <option value="9">09</option>
                <option value="10">10</option>
                <option value="11">11</option>
                <option value="12">12</option>
              </select>
              月
              <select name="day" id="day">
                <option selected="selected" value="01">01</option>
                <option value="02">02</option>
                <option value="03">03</option>
                <option value="04">04</option>
                <option value="05">05</option>
                <option value="06">06</option>
                <option value="07">07</option>
                <option value="08">08</option>
                <option value="09">09</option>
                <option value="10">10</option>
                <option value="11">11</option>
                <option value="12">12</option>
                <option value="13">13</option>
                <option value="14">14</option>
                <option value="15">15</option>
                <option value="16">16</option>
                <option value="17">17</option>
                <option value="18">18</option>
                <option value="19">19</option>
                <option value="20">20</option>
                <option value="21">21</option>
                <option value="22">22</option>
                <option value="23">23</option>
                <option value="24">24</option>
                <option value="25">25</option>
                <option value="26">26</option>
                <option value="27">27</option>
                <option value="28">28</option>
                <option value="29">29</option>
                <option value="30">30</option>
              </select>
              日</span>
            <div class="h10"></div>
            <input type="submit" value="发布" style="margin:0;" class="checkNow" name="">
      </div>
        
  </div>
  
</form>
<div class="right">
        <div class="loginIn">
            <i class="lt"></i><i class="rt"></i><i class="lb"></i><i class="rb"></i>
            <div class="loginFo">
                <h3>个人信息</h3>
                <a href="#"><img src={{user.image}} class="userPic" alt={{user.nickname}} /></a>昵称：{{ user.nickname }}<br />注册时间:{{ user.llt }}
            </div><br clear="all" />
        </div>
        <div class="h10"></div>
       <a href=/problem/create/><img src="/static/images/tounow.gif" alt="立即发起投票" /></a>
       <div class="typeRight">
            <ul>
                <li class="jiaoyu"><a href="#"><span></span>教育</a></li>
                <li class="licai"><a href="#"><span></span>理财</a></li>
                <li class="shuma"><a href="#"><span></span>数码</a></li>
                <li class="xingzuo"><a href="#"><span></span>星座</a></li>
                <li class="hunlian"><a href="#"><span></span>婚恋</a></li>
                <li class="zhekou"><a href="#"><span></span>折扣</a></li>
                <li class="lvyou"><a href="#"><span></span>旅游</a></li>
                <li class="meishi"><a href="#"><span></span>美食</a></li>
                <li class="jujia"><a href="#"><span></span>居家</a></li>
                <li class="zhichang"><a href="#"><span></span>职场</a></li>
                <li class="liwu"><a href="#"><span></span>礼物</a></li>
                <li class="meirong"><a href="#"><span></span>美容</a></li>
                <li class="qiche"><a href="#"><span></span>汽车</a></li>
                <li class="yule"><a href="#"><span></span>娱乐</a></li>
                <li class="bagua"><a href="#"><span></span>八卦</a></li>
                <li class="shenma"><a href="#"><span></span>神马</a></li>
            </ul>
            <br clear="all" />
        </div>
        <div class="hot">
            <div class="hotTie">
                <ul>
                    <li id="month" class="hotN">本月热门投票</li>
                    <li id="week">本周热门投票</li>
                </ul>
            </div>
            <div class="hotCon">
                <ol class="month">
                	{% for p in monthHotProblems %}
                	<li><a href="/problem/{{ p.pid }}/">{{ p.title }}</a></li>
            		{% endfor %}            	
            	</ol>
            	<ol class="week" style="display:none">
                	{% for p in weekHotProblems %}
                	<li><a href="/problem/{{ p.pid }}/">{{ p.title }}</a></li>
            		{% endfor %}            	
            	</ol>
            </div>
        </div>
    </div>
</div>
<div class="foot">
    <div>关于我们 · 联系我们 · 意见反馈   © 2011 dXXXX.com, all rights reserved                                         ICP：34325434667</div>
</div>
</body>
</html>
